<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="../css/docs.css" type="text/css" rel="stylesheet" />
<link href="../css/prettify.css" type="text/css" rel="stylesheet" />
<script src="../js/prettify.js" type="text/javascript"></script>
</head>
<body onLoad="prettyPrint()">
<div class="g-unit" id="doc-content">
<div id="api-info-block">
<div class="api-level">H3C CAS云管理平台</div>
</div>
<div id="jd-header">
<h1>从IMC中查询VSI的网络ID，VSI的ID和版本的ID</h1>
</div>
<div id="jd-content">
<div class="jd-descr">
<p>从IMC中查询VSI的网络ID，VSI的ID和版本的ID。</p>
<h2><a name="uri"></a>接口 URI</h2>
<p>/cas/casrs/profile/getVsiInfoImc</p>
<h2><a name="result"></a>返回结果</h2>
<dl>
  <dt><b>状态码</b></dt>
  <dd>
  <ul>
    <li>200(OK)：成功。</li>
  </ul>
  </dd>
  <dt><b>消息头</b></dt>
  <br>
  <pre class="prettyprint lang-xml">
HTTP/1.1 200 OK
Total: 7</pre>
  <dt><b>消息体</b></dt>
  <div class="source">
    <pre class="prettyprint lang-xml">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>&lt;list&gt;<br>  &lt;vsiTypeGroup id=&quot;1&quot;&gt;<br>    &lt;name&gt;acl&lt;/name&gt;<br>    &lt;vlanId&gt;1&lt;/vlanId&gt;<br>    &lt;type&gt;0&lt;/type&gt;<br>    &lt;typeName&gt;00&lt;/typeName&gt;<br>    &lt;description&gt;00&lt;/description&gt;
    &lt;link&gt;00&lt;/link&gt;<br>  &lt;/vsiTypeGroup&gt;<br>&lt;/list&gt;<br><br><br></pre>
  </div>
</dl>
<dt><a name="detail"></a><b>元素含义</b></dt>
<table class="jd-sumtable" id="pubmethods">
  <tbody>
    <tr>
      <th colspan="2"><span class="prettyprint lang-xml">vsiTypeGroup</span>各子元素</th>
    <tr>
      <td class="jd-typecol"><span class="prettyprint lang-xml">name</span></td>
      <td class="jd-linkcol" width="100%"><span class="sympad">网络名称。</span>
          <div class="jd-descrdiv">字符串（String）类型。</div></td>
    </tr>
    <tr class="alt-color">
      <td class="jd-typecol"><span class="prettyprint lang-xml">vlanId</span></td>
      <td class="jd-linkcol"><span class="sympad">VLANID</span>
          。
            <div class="jd-descrdiv">整形（Integer）类型。</div></td>
    </tr>
    <tr>
      <td class="jd-typecol"><span class="prettyprint lang-xml">type</span></td>
      <td class="jd-linkcol"><span class="sympad">网络类型。0标识预定义，1标识自定义</span>
          <div class="jd-descrdiv">长整形（Long）类型。</div></td>
    </tr>
    <tr class="alt-color">
      <td class="jd-typecol"><span class="prettyprint lang-xml">typeName</span></td>
      <td class="jd-linkcol" width="100%"><span class="sympad">网络类型名称。</span>
          <div class="jd-descrdiv">字符串（String）类型。</div></td>
    </tr>
	<tr>
      <td class="jd-typecol"><span class="prettyprint lang-xml">description</span></td>
      <td class="jd-linkcol"><span class="sympad">网络描述。</span>
          <div class="jd-descrdiv">字符串（String）类型。</div></td>
    </tr>
	<tr>
      <td class="jd-typecol"><span class="prettyprint lang-xml">link</span></td>
      <td class="jd-linkcol"><span class="sympad">查询该网络详情链接。href表示访问链接。op表示连接访问方式。rel表示连接访问返回信息。</span>
          <div class="jd-descrdiv">字符串（String）类型。</div></td>
    </tr>
</table>
<p>&nbsp;</p>
<h2><a name="example"></a>应用举例</h2>
    <p>1.查询id为1的ACL策略。</p>
    <dl>
      <dt><b>请求</b></dt>
      <div class="source">
        <pre class="prettyprint lang-xml">GET http://localhost:8080/cas/casrs/acl?name=acl&amp;limit=5&amp;offset=5
accept: application/xml
...
        </pre>
      </div>
      <dt><b>回应</b></dt>
      <div class="source"><pre class="prettyprint lang-xml">
HTTP/1.1 200 OK
Content-Type: application/xml
...<br>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>&lt;list&gt;<br>  &lt;vsiTypeGroup id=&quot;1&quot;&gt;<br>    &lt;name&gt;acl&lt;/name&gt;<br>    &lt;vlanId&gt;1&lt;/vlanId&gt;<br>    &lt;type&gt;0&lt;/type&gt;<br>    &lt;typeName&gt;00&lt;/typeName&gt;<br>    &lt;description&gt;00&lt;/description&gt;
    &lt;link&gt;00&lt;/link&gt;<br>  &lt;/vsiTypeGroup&gt;<br>&lt;/list&gt;<br><br></pre>
      </div>
    </dl>
</div>
</div>
</div>
</body>
</html>